import { http, jumpExport } from '@/utils/http/axios';

// 获取商品属性列表
export function List(params) {
  return http.request({
    url: '/storeProductAttr/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除商品属性
export function Delete(params) {
  return http.request({
    url: '/storeProductAttr/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑商品属性
export function Edit(params) {
  return http.request({
    url: '/storeProductAttr/edit',
    method: 'POST',
    params,
  });
}

// 获取商品属性指定详情
export function View(params) {
  return http.request({
    url: '/storeProductAttr/view',
    method: 'GET',
    params,
  });
}

// 导出商品属性
export function Export(params) {
  jumpExport('/storeProductAttr/export', params);
}